import requests from "./ajax";
// 请求换一换热门城市
export const reqRandomCityInfo = () => requests({ url: "/city/city_random", method: 'get' })
// 请求换一换热门酒店
export const reqRandomHotelInfo = () => requests({ url: "/hotel/hotel_random", method: 'get' })
// 请求换一换热门房型
export const reqRandomRoomInfo = () => requests({ url: "/room/room_random", method: 'get' })
// 请求换一换热门周边
export const reqRandomAroundInfo = () => requests({ url: "/recommend/around_random", method: 'get' })
// 请求酒店信息
export const reqHotelInfo = (data) => requests({ url: `/hotel/hotel_hid?hid=${data}`, method: 'get' })
// 请求酒店的房间信息
export const reqHotelRoomInfo = (data) => requests({ url: `/room/room_a?hid=${data}`, method: 'get' })
// 请求推荐的酒店信息
export const reqRecommendHotelInfo = (data) => requests({ url: `/hotel/search?city=${data.city}&kw=${data.kw}`, method: 'get' })
// 请求个人信息
export const reqUserInfo = (uid) => requests({ url: '/users/reqUserInfo', method: 'post', data: { uid } })
// 请求所有用户银行卡信息
export const reqBankCardInfo = (data) => requests({ url: `/card/all?uid=${data}`, method: 'get' })
// 添加银行卡
export const addBankCard = (data) => requests({ url: '/card/addBankCardInfo', method: 'post', data })
// 删除银行卡
export const delBankCard = (data) => requests({ url: '/card/delBankCardInfo', method: 'post', data })
// 请求支付密码信息
export const reqPayPassword = (data) => requests({ url: '/card/reqPayPassword', method: 'post', data })
// 添加订单
export const addOrder = (params) => requests({ url: '/order/order_add', method: 'get', params })
// 请求所有订单信息
export const reqAllOrderInfo = (data) => requests({ url: `order/order_all?uid=${data}`, method: 'get' })
// 请求分类订单信息
export const reqOrderInfo = (params) => requests({ url: `order/order_me`, method: 'get', params })
// 删除订单
export const delOrderInfo = (data) => requests({ url: `order/order_delete?id=${data}`, method: 'get' })
// 查看订单
export const reqOrderDetail = (data) => requests({ url: `order/order_detail?id=${data}`, method: 'get' })
// 搜索订单
export const reqOrder = (uid, kw) => requests({ url: `/order/order_search?uid=${uid}&title=${kw}`, method: 'get' })

